package com.teamall.web.fpgz.db.dao.mapper;

import com.teamall.web.fpgz.db.arg.CodeFamilyMemberArg;
import com.teamall.web.fpgz.db.po.CodeFamilyMemberPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeFamilyMemberMapper {
    
    List<Integer> countByArg(CodeFamilyMemberArg arg);

    List<CodeFamilyMemberPO> selectByArg(CodeFamilyMemberArg arg);

    CodeFamilyMemberPO selectByPrimaryKey(Integer id);

    List<CodeFamilyMemberPO> selectByArgAndPage(CodeFamilyMemberArg arg, RowBounds rowBound);

    int insert(CodeFamilyMemberPO record);

    int insertSelective(CodeFamilyMemberPO record);

    int insertBatch(@Param("list") List<CodeFamilyMemberPO> records);

    int updateByArgSelective(@Param("record") CodeFamilyMemberPO record,
            @Param("arg") CodeFamilyMemberArg arg);

    int updateByArg(@Param("record") CodeFamilyMemberPO record,
            @Param("arg") CodeFamilyMemberArg arg);

    int updateByPrimaryKeySelective(CodeFamilyMemberPO record);

    int updateByPrimaryKey(CodeFamilyMemberPO record);
    
    int deleteByArg(CodeFamilyMemberArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}